package edu.hunau.cxb19.oop.class06;

import org.junit.Test;

import edu.hunau.cxb19.oop.class06.single.Counter;

/**
 *
 * @author hb
 *
 *         2020-03-02 15:42:40
 */
public class SingleTest {

	@Test
	public void call() {
		Counter c1 = Counter.getInstance();
		Counter c2 = Counter.getInstance();
		Counter c3 = Counter.getInstance();
		c1.increment();
		c2.increment();
		c3.increment();
		
		System.out.println(c3.getCount());
		
	 

	}
}
